<?php
/**
 * OrganisationMemberContributionFixture
 *
 */
class OrganisationMemberContributionFixture extends CakeTestFixture {

/**
 * Fields
 *
 * @var array
 */
	public $fields = array(
		'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'key' => 'primary'),
		'member_id' => array('type' => 'integer', 'null' => true, 'default' => NULL, 'key' => 'index'),
		'organisation_contribution_type_id' => array('type' => 'integer', 'null' => true, 'default' => NULL, 'key' => 'index'),
		'contribution_dt' => array('type' => 'date', 'null' => true, 'default' => NULL),
		'amount' => array('type' => 'float', 'null' => true, 'default' => NULL, 'length' => '10,2'),
		'month' => array('type' => 'integer', 'null' => true, 'default' => NULL, 'length' => 2),
		'year' => array('type' => 'integer', 'null' => true, 'default' => NULL, 'length' => 4, 'key' => 'index'),
		'receipt_number' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 30, 'collate' => 'latin1_swedish_ci', 'charset' => 'latin1'),
		'created_dt' => array('type' => 'datetime', 'null' => true, 'default' => NULL),
		'modified_dt' => array('type' => 'timestamp', 'null' => true, 'default' => NULL),
		'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1), 'member_id' => array('column' => 'member_id', 'unique' => 0), 'organisation_contribution_type_id' => array('column' => 'organisation_contribution_type_id', 'unique' => 0), 'year' => array('column' => array('year', 'month'), 'unique' => 0)),
		'tableParameters' => array('charset' => 'latin1', 'collate' => 'latin1_swedish_ci', 'engine' => 'InnoDB')
	);

/**
 * Records
 *
 * @var array
 */
	public $records = array(
		array(
			'id' => 1,
			'member_id' => 1,
			'organisation_contribution_type_id' => 1,
			'contribution_dt' => '2012-03-14',
			'amount' => 1,
			'month' => 1,
			'year' => 1,
			'receipt_number' => 'Lorem ipsum dolor sit amet',
			'created_dt' => '2012-03-14 12:36:30',
			'modified_dt' => 1331728590
		),
	);
}
